<!DOCTYPE html>
<html lang="zh-CN">
<head>
    <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1" />
    <meta charset="utf-8" />
    <title>后台管理 - 电工服务协议条款</title>

    <meta name="keywords" content="{$Think.CONFIG.keywords}" />
    <meta name="description" content="{$Think.CONFIG.description}" />
    <meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0" />

    <include file="Public/head" />
</head>
<?php $Electrician='active';$ptitle='电工管理';$title='电工服务协议条款';?>
<body class="no-skin">
<include file="Public/header" />
<div class="main-container" id="main-container">
    <script type="text/javascript">
        try{ace.settings.check('main-container' , 'fixed')}catch(e){}
    </script>

    <include file="Public/sidebar" />
    <div class="main-content">
        <div class="main-content-inner">
            <!-- #section:basics/content.breadcrumbs -->
            <include file="Public/breadcrumbs" />

            <!-- /section:basics/content.breadcrumbs -->
            <div class="page-content">
                <include file="Public/set" />

                <!-- /section:settings.box -->
                <div class="row" style="margin-top: 30px;">
                    <div class="col-xs-12">
                        <form action="{:U('electrician_agreement')}" method="post" class="ajax-form" enctype="multipart/form-data">
                            <input type="hidden" name="id" value="{$info['id']}">
                            <input type="hidden" name="p" value="{$p}">
                            <input type="hidden" name="is_check" value="{$is_check}">
                            <input type="hidden" name="search_content" value="{$search_content}">
                            <div class="form-horizontal">
                                <div class="form-group">
                                    <label class="col-sm-1 control-label no-padding-right"> 服务协议条款 </label>
                                    <div class="col-sm-6">
                                        <script src="__PUBLIC__/ueditor/ueditor.config.js" type="text/javascript"></script>
                                        <script src="__PUBLIC__/ueditor/ueditor.all.js" type="text/javascript"></script>
                                        <textarea name="electrician_agreement" rows="100%" style="width:100%;" id="myEditor">{$electrician_agreement}</textarea>
                                        <script type="text/javascript">
                                            var editor = new UE.ui.Editor();
                                            editor.render("myEditor");
                                        </script>
                                    </div>
                                </div>

                                <div class="col-md-offset-2 col-md-9">
                                    <button class="btn btn-info" type="submit">
                                        <i class="icon-ok bigger-110"></i>
                                        提交
                                    </button>

                                    &nbsp; &nbsp; &nbsp;
                                    <button class="btn btn-info" type="button" onclick='fan();'>
                                        <i class="icon-ok bigger-110"></i>
                                        返回
                                    </button>
                                </div>
                            </div>
                        </form>
                        <!-- PAGE CONTENT ENDS -->
                    </div><!-- /.col -->
                </div><!-- /.row -->
            </div><!-- /.page-content -->
        </div>
    </div><!-- /.main-content -->
    <include file="Public/footer" />

</div><!-- /.main-container -->

<include file="Public/footerjs" />
<!-- inline scripts related to this page -->
<script>
    //获取所有的城市
    function citys(){
        //获取被选中的option标签
        var province = $('#province option:selected').val();
        //ajax获取专题下的一级分类
        $.ajax({
            url:"{:U('city')}",
            type:'post',
            async: false,
            data:{province:province},
            success:function(data){
                var city = JSON.parse(data);
                var aa = '<option value="" >请选择城市</option>';
                for(var i=0;i<city.length;i++){
                    aa += '<option value="'+city[i].code+'">'+city[i].name+'</option>';
                }
                $('#city').html(aa);
            }
        })
    }

    //获取所有的县区
    function countys(){
        //获取被选中的option标签
        var city = $('#city option:selected').val();
        //ajax获取专题下的一级分类
        $.ajax({
            url:"{:U('county')}",
            type:'post',
            async: false,
            data:{city:city},
            success:function(data){
                var county = JSON.parse(data);
                var aa = '<option value="" >请选择县区</option>';
                for(var i=0;i<county.length;i++){
                    aa += '<option value="'+county[i].code+'">'+county[i].name+'</option>';
                    $('#county').html(aa);
                }
            }
        })
    }

    //获取所有的县区
    function villages(){
        //获取被选中的option标签
        var county = $('#county option:selected').val();
        //ajax获取专题下的一级分类
        $.ajax({
            url:"{:U('town')}",
            type:'post',
            async: false,
            data:{county:county},
            success:function(data){
                var county = JSON.parse(data);
                var aa = '<option value="" >请选择乡镇</option>';
                for(var i=0;i<county.length;i++){
                    aa += '<option value="'+county[i].code+'">'+county[i].name+'</option>';
                    $('#towns').html(aa);
                }
            }
        })
    }
</script>
</body>
</html>
